<template>
  <view class="flex flex-x-center success">
    <view class="flex-wrap flex-x-center box">
      <image class="icon" src="@/static/images/icon_success.png" mode="widthFix" />
      <text class="tips">恭喜您，支付成功！</text>
      <button class="btn" @tap="onGoHome">去首页</button>
    </view>
  </view>
</template>

<script setup>
const onGoHome = () => {
  uni.switchTab({
    url: '/pages/index/index'
  })
}
</script>

<style lang="scss" scoped>
@use "@/static/css/common.scss";
.success{
  padding: 0 45rpx;
  height: 100vh;
  color: #e69c37;
}
.icon{
  width: 180rpx;
}
.tips{
  margin-top: 30rpx;
  width: 100%;
  font-size: 32rpx;
  text-align: center;
}
.btn{
  margin-top: 90rpx;
  width: 100%;
  height: 90rpx;
  line-height: 90rpx;
  color: #fff;
  font-size: 32rpx;
  text-align: center;
  box-sizing: border-box;
  border-radius: 8rpx;
  background: #6063e8;
}
</style>
